-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: update file response #1161
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to d4412d9 in 11 seconds
More details
- Looked at
34
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. js/src/sdk/utils/processor/file.ts:25
- Draft comment:
EnsuretoolResponse.data
exists before deletingfile
. - Reason this comment was not posted:
Comment did not seem useful.
2. js/src/sdk/utils/processor/file.ts:21
- Draft comment:
Consider using a more secure method thanMath.random()
for generating random strings if security is a concern. - Reason this comment was not posted:
Confidence changes required:50%
The change in file naming introduces a random string for uniqueness, which is a good practice. However, the use ofMath.random()
for generating a random string is not cryptographically secure. If security is a concern, consider using a more secure method.
Workflow ID: wflow_lkKqqVWR1USeDNnc
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
This comment was generated by github-actions[bot]! JS SDK Coverage Report📊 Coverage report for JS SDK can be found at the following URL: 📁 Test report folder can be found at the following URL: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 69cdadc in 10 seconds
More details
- Looked at
12
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
0
drafted comments based on config settings.
Workflow ID: wflow_WZN9tdd7zVcRkZNB
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
const responseData = | ||
(toolResponse.data.response_data as Record<string, unknown>) || {}; | ||
const fileData = responseData.file as | ||
const fileData = toolResponse?.data?.file as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
format change, earlier format was different
Important
Update
fileResponseProcessor
to prepend random string to file name and returnfile_uri_path
instead offile
.fileResponseProcessor
, prepend a random string to the file name usingMath.random()
.file
property fromtoolResponse.data
after processing.toolResponse
withfile_uri_path
instead offile
.toolResponse.data.file
infileResponseProcessor
.This description was created by for 69cdadc. It will automatically update as commits are pushed.